﻿// =================================================================== 
// Module说明
//====================================================================
// 创建时间：2018-12-10 12:14:28
// 负责人：Sushee
// ===================================================================
using System;
using System.Data;
using System.Collections.Generic;
using OF.Utility;
using OF.Component.Model;
using OF.Component.IDAL;
using OF.Component.Factory;
namespace OF.Component.BLL
{
	
	/// <summary>
	///
	/// </summary>
	public partial class BaseLocation_AllOperate
	{
    
        private static readonly string CACHE_KEY = "OF.BLL.BaseLocation_AllInfo";
        private static readonly IBaseLocation_All dal=  BaseLocation_All.CreateInstance();
        
        
        
         public static int GetMaxID()
         {
            return dal.GetMaxID();
         }
        
		public static int Insert(BaseLocation_AllInfo info)
		{
			int reValue=dal.Insert(info);
            return reValue;
		}
        
		public static void Update(BaseLocation_AllInfo info)
		{
			dal.Update(info);
		}
        
        public static void Delete(int locationId)
		{
           
            dal.Delete(locationId);		
		}
      
		public static IList<BaseLocation_AllInfo> Search(out int pageCount, int pageIndex, int pageSize, string where, string orderField, bool isDesc)
		{
			return dal.Search(out pageCount, pageIndex, pageSize, where, orderField, isDesc);
        }
        
          public static BaseLocation_AllInfo GetByID(int locationId)
		{
           return dal.GetByID(locationId);

        }
	}
	
}